package com.xing.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xing.hospital.model.order.OrderCountQueryVo;
import com.xing.hospital.model.vo.order.OrderQueryVo;
import com.xing.order.entity.OrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author xingfuao
 * @since 2022-08-08
 */
public interface OrderInfoService extends IService<OrderInfo> {

    //生成挂号订单
    Long saveOrders(String scheduleId, Long patientId);

    //订单列表（条件查询带分页）
    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    /**
     * 根据订单id查询订单详情
     *
     * @param orderId
     * @return
     */
    OrderInfo getOrder(String orderId);

    /**
     * 取消预约
     *
     * @param orderId
     * @return
     */
    Boolean cancelOrder(Long orderId);

    /**
     * 就诊通知
     */
    void patientTips();



    /**
     * 预约统计
     * @param orderCountQueryVo
     * @return
     */
    Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);

}
